{template header}


{template sidebar}

<!-- artile begin -->
<div class="article">
{template title}


<!--{if  $a == 'index' || $a == 'search_outStock'}-->
<form class="form-search" action="{$this->url($c, 'search_outStock', $this->get())}">
    <table>
        <tr><td class="td1" width="20%">出库单号：</td>
            <td>

                <div class="input-append">
                    <input type="text" name="key" class="span2 search-query" placeholder=""请输入出库单号 />
                    <button type="button" class="btn search">搜索</button>
                </div>
            </td >
        </tr>
    </table>

</form>
<!--{/if}-->


<table cellpadding="1" cellspacing="1" width="100%" border="0" accesskey="" >

    <!--{if  $a == 'index'|| $a == 'search_outStock'}-->

    <tr>
        <th width="10%">出库单号</th>
        <th width="10%">操作员</th>
        <th width="10%">出库日期</th>
        <th width="10%">商品品种数</th>
        <th width="15%">操作</th>
    </tr>

    <!--{if $result}-->
    <!--{loop $result $val}-->
    <tr>
        <td>{$val['inOutStockNo']}</td>
        <td>{$val['operator']}</td>
        <td>{$val['inOutStockDate']}</td>
        <td>{$val['amount']}</td>
        <td class="operate">
            <a href="{$this->url($c,'edit',array('inOutStockNo'=>$val['inOutStockNo'], 'type'=>'outStock'))}">编辑</a>
            <a title="删除商品" class="del" href="{$this->url($c,'del',array('inOutStockNo'=>$val['inOutStockNo']))}">删除</a>
        </td>
    </tr>

    <!--{/loop}-->

    <!--{else}-->
    <tr>

        <td colspan="5">没有数据记录文件！</td>

    </tr>
    <!--{/if}-->
    <tr>
        <td colspan="4" class="td4">
            <a title="添加供货商" class="btn btn-success " href="{$this->url($c,'addOrder',array('type' => $type))}">添加出库单</a>
        </td>
    </tr>
    <!--{/if}-->

    <!--{if  $a == 'lookGoods'|| $a == 'search_Goods'}-->
    <tr>

        <th width="20%">商品编号</th>
        <th width="20%">数量</th>
        <th width="20%">颜色信息</th>
        <th width="10%">尺码信息</th>
        <th width="15%">操作</th>
    </tr>
    <!--{if $result}-->
    <!--{loop $result $val}-->

    <tr>
        <td>{$val['goodsNo']}</td>
        <td>{$val['goodsNumber']}</td>
        <td>{$val['color']}</td>
        <td>{$val['size']}</td>
        <td class="operate">
            <a href="{$this->url($c,'editGoods',array('id'=>$val['id'], 'type'=>'outStock'))}">编辑</a>
            <a title="删除商品" class="del" href="{$this->url($c,'del',array('id'=>$val['id']))}">删除</a>
        </td>
    </tr>

    <!--{/loop}-->

    <!--{else}-->
    <tr>

        <td colspan="5">没有数据记录文件！</td>

    </tr>
    <!--{/if}-->

    <!--{/if}-->


</table>




<!--{if  $a == 'addOrder' ||  $a =='edit' }-->
<form method="post" action="{$this->url($c, 'save', array('inOutStockNo' => $result['inOutStockNo'],'type' => $type) )}">
    <table cellpadding="1" cellspacing="1" width="100%" border="0">
        <tr>
            <td class="td1">出库单号：</td>
            <td class="td2" colspan="2">
                <input type="text" size="30" name="orderNo" value="{$a == 'edit' ? $result['inOutStockNo'] : ''}" />
            </td>
        </tr>
        <tr>
            <td class="td1">库存编号：</td>
            <td class="td2" colspan="4">
                <input type="text" name="stockNo" value="{$a == 'edit' ? $result['stockNo'] : ''}" />
            </td>
        </tr>
        <tr>
            <td class="td1">商品总数：</td>
            <td class="td2" colspan="4">
                <input type="text" name="totalNum" value="{$a == 'edit' ? $result['amount'] : ''}" />
            </td>
        </tr>

        <tr>
            <th colspan="2" class="td4">
                <a title="保存供货商" class="btn btn-success save" href="{$this->url($c)}">保 存</a>
            </th>
        </tr>



    </table>
</form>
<!--{/if}-->


</div>
<!-- artile end -->
{template footer}
